<section id="products_outer" class="twelve columns">

    <div class="box_head">

        <h3><?php echo $title; ?></h3>

    </div>



    <ul class="product_show clearfix">

        <?php

        $lib_img = new images_thumb();

        $lib_rupiah = new Format_rupiah();



        foreach ($list_data as $dtproduk) {

            $gambar = base_url() . "uploads/" . $dtproduk->id . "/" . $lib_img->image($dtproduk->image1);

            $nama_produk = $dtproduk->nama_produk;

            $warna = $dtproduk->warna;

            $diskon = $dtproduk->disk;

            $harga = $dtproduk->harga;



            if ($diskon == 0)

                $harga = $lib_rupiah->rupiah($harga);

            else {

                $sub = $harga - ($harga * $diskon / 100);

                $harga = "<span class='sale_offer'>" . $lib_rupiah->rupiah($harga) . "</span> &nbsp;  " . $lib_rupiah->rupiah($sub);

            }

            echo "<li>";

            echo "<div class='img'>";

            echo "<div class='hover_over' style='opacity: 0;'>";

            echo "<a class='cart' href='" . base_url() . "main/produk/produk_det/$dtproduk->id" . "' style='right: 0px;'>cart</a>";

            echo "</div>";

            echo "<a href='#'>";

            echo "<img src='$gambar' alt='product' style='overflow: hidden; width: 50%; height: 75%; left: 0px; top: 0px;'>";

            echo "</a>";

            echo "</div>";

            echo "<h6><a href='#'>$nama_produk</a></h6>";

            echo "<h5>$harga</h5>";

            echo "</li>";

        }

        ?>



    </ul>

    <?php

    echo "<center>" . $link_pagging . "</center>";

    ?>

</section>



